#ifndef  __LOG_FILE_H_
#define  __LOG_FILE_H_

//#include "StdAfx.h"
#include <QMutex>
#include <QFile>

//日志文件管理类
class  KgLogFile
{
public:
    KgLogFile();
	~KgLogFile();
public:
	void createlogfile(QString fileName);
	void writelogfile(QString strInfo);
	int fileSize();
	void close();

private:
    QFile    m_file;             //日志文件
	QString  m_strPath;        //日志文件所在路径
	int      m_bCreateSuc;     //日志文件是否建立成功
	QMutex   m_criticfile;//临界区同步对象
};

#endif

